home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Utilities
/
indent-1.8
/
README.mpw
< prev
next >
Wrap
Text File
|
1994-01-19
|
3KB
|
100 lines
GNU indent 1.8
MPW port by Franklin Chen <chen@adi.com>
Notes
-----
UserStartup•Indent provides sample settings for INDENT_PREFDIR,
SIMPLE_BACKUP_SUFFIX, and VERSION_CONTROL (the last two will also apply to
other programs using emacs-style backups, such as Patch).
Indent.Help contains help information. It's huge and really ugly, but there
it is.
To install the tool, help, and startup, just enter
BuildProgram install_already_built
Built with gC -mc68020. Note that GUSI is used for dirent and stat.
Some adjustments will need to be made for a THINK C port.
Changes
-------
(All the changes up through 1.8)
(Wed, Jan 19, 1994)
sys.h
Added a section for macintosh:
defined USG
defined PROFILE_FORMAT correctly
(MPW) included <CursorCtl.h>; declared fsetfileinfo()
included <fcntl.h>
### included <string.h>, <stdlib.h>
### don't redeclare malloc(), realloc()
args.c, backup.c, globs.c, indent.c
### (not changed) should replace fprintf...exit by call to GNU error()
args.c
made INDENT_PROFILE "Indent Prefs"
### (not changed) should make pro[], option_conversions[] static
set_profile():
Mac style paths
(MPW) searches in INDENT_PREFDIR instead of HOME
backup.c
*** Note that this is where dirent is needed
(MPW) initialize_backups(): flushed stderr after message
max_version():
used Mac directory delimiter ':' and current directory ":"
instead of '/' and "."
### (not changed) should remove extern declaration of getenv()
since in <stdlib.h>
make_backup():
ifdef'ed creat() to one argument
(MPW) fsetfileinfo() to set type and creator of backup file
globs.c
### (not changed) should use (void *) and size_t
### (not changed) could provide MPW style messages
indent.c
[prev] (MPW) spin the cursor
indent(): provided Mac directory separator ':'
### (not changed) usage(): should be static
### (not changed) fix [-o outfile ]
(MPW) print MPW style
### (not changed) correct spelling error "Uset" to "Use"
(MPW) used fsetfileinfo() to set type and creator of output files
io.c
(NB) includes <sys/types.h> and <sys/stat.h>
*** read_file(): uses stat
### (not changed) fill_buffer(): misspelling "procede"
### read_file(): ifdef'ed call of open() to two args
### (not changed) diag(): should use <stdarg.h>
(MPW) MPW style message
### (not changed) dump_debug_line() doesn't seem to be used anywhere!
### (not changed) pad_output() should be static
### (not changed) sys_error() should be replaced with GNU error
lexi.c
[previous ports] (MPW) spin the cursor
### (not changed) addkey(): should be void
### is_reserved(): should be static
### (not changed) chartype[] should be static
### (not changed) chartype[] should be 256 instead of 128 in size,
to account for 8-bit extended ASCII
### (not changed) should cast to (unsigned char) before accessing
array chartype[] if 8-bit
parse.c
### (not changed) reduce(): should be static void
Indent.r
Updated
Indent.Help
Updated
UserStartup•Indent
Updated